package com.xinjian.jianba.dto;

import java.io.Serializable;
import java.math.BigDecimal;

import com.xinjian.jianba.annotation.Validator;
import com.xinjian.jianba.exception.PageParameter;

public class StartMeetDto extends PageParameter implements Serializable {
	private static final long serialVersionUID = 3445055445300422047L;
	private String id;

	@Validator(nullable = false, description = "经度")
	private BigDecimal lngfloat;
	@Validator(nullable = false, description = "纬度")
	private BigDecimal latfloat;
	//	类型：0：男女；1：只看男；2:只看女
	private Integer meetType = 0;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public BigDecimal getLngfloat() {
		return lngfloat;
	}

	public void setLngfloat(BigDecimal lngfloat) {
		this.lngfloat = lngfloat;
	}

	public BigDecimal getLatfloat() {
		return latfloat;
	}

	public void setLatfloat(BigDecimal latfloat) {
		this.latfloat = latfloat;
	}

	public String getGeom() {
		return "POINT(".concat(lngfloat.toString()) + " " + latfloat.toString() + ")";
	}

	public Integer getMeetType() {
		return meetType;
	}

	public void setMeetType(Integer meetType) {
		this.meetType = meetType;
	}

}
